package com.edu.app.util.http;


import com.edu.app.util.http.exception.NotSupportDataTypeException;
import okhttp3.Callback;

import java.io.IOException;
import java.util.Map;

public interface HttpInterface {
    public void HttpGetAsync(String url, Map<String, Object> queries, Callback callback);
    public String HttpGetSync(String url, Map<String, Object> queries) throws IOException;
    public void HttpPostAsync(String url,
                              Map<String, Object> data,
                              DataType dataType,
                              String mediaTypeStr,
                              Callback callback )throws NotSupportDataTypeException;
    public String HttpPost (String url,
                            Map<String, Object> data,
                            DataType dataType,
                            String mediaTypeStr  ) throws  IOException,NotSupportDataTypeException;
}
